:root {
    --primary-color: #1e4d8b;
    --secondary-color: #f39c12;
    --accent-color: #2c5aa0;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --text-dark: #333;
    --text-light: #6c757d;
}

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

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.logo-container {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    position: relative;
}

.logo-container img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Logo variants for different sections */
.logo-footer {
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.logo-footer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.4));
}

.logo-section {
    width: 120px;
    height: 120px;
    margin: 0 auto 3rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

.logo-section:hover {
    opacity: 1;
    transform: scale(1.05);
}

.logo-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(30, 77, 139, 0.3));
}

.logo-section::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(243, 156, 18, 0.1), transparent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-section:hover::after {
    opacity: 1;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 77, 139, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Assets/Hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="400" cy="300" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="600" cy="150" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="400" r="2" fill="rgba(255,255,255,0.15)"/><circle cx="300" cy="500" r="1" fill="rgba(255,255,255,0.2)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-item, .sector-item {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.service-icon, .sector-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-icon:hover, .sector-icon:hover {
    transform: scale(1.05);
}

.feature-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Preload critical images */
.feature-img img[loading="lazy"] {
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

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

/* Social links animation */
.social-link {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px) scale(1.1);
    color: var(--secondary-color) !important;
}

.sector-features {
    list-style: none;
    padding: 0;
}

.sector-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.sector-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.priority-badge {
    background: linear-gradient(135deg, var(--secondary-color), #e67e22);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

/* Background Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-bg), #2c2c2c);
}

/* Enhanced Professional Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }

/* Smooth scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Enhanced card hover effects */
.card, .expertise-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover, .expertise-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Smooth button animations */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced icon animations */
.service-icon, .sector-icon, .expertise-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-icon:hover, .sector-icon:hover {
    transform: translateY(-5px) rotate(5deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Professional floating animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.hero-section::before {
    animation: gentleFloat 12s ease-in-out infinite;
}

/* Smooth navbar transition */
.navbar {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced logo animations */
.logo-section, .logo-footer, .logo-container {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-section:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 16px rgba(30, 77, 139, 0.4));
}

.logo-footer:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-footer:hover img {
    filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.6));
}

/* Hero logo */
.hero-logo {
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Parallax effect for hero section */
.hero-content {
    transition: transform 0.1s ease-out;
}

/* Stagger animation for lists */
.sector-features li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sector-features li:nth-child(1) { transition-delay: 0.1s; }
.sector-features li:nth-child(2) { transition-delay: 0.2s; }
.sector-features li:nth-child(3) { transition-delay: 0.3s; }
.sector-features li:nth-child(4) { transition-delay: 0.4s; }
.sector-features li:nth-child(5) { transition-delay: 0.5s; }
.sector-features li:nth-child(6) { transition-delay: 0.6s; }

.sector-features li.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
}


/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-item, .sector-item {
        text-align: center;
    }
}

/* Custom styling for contact section */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.contact-item i {
    margin-right: 1rem;
    width: 24px;
}

/* New styles for expertise section */
.expertise-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}