:root {
    --primary-blue: #2a94d1;
    --dark-blue: #1E40AF;
    --light-blue: #93C5FD;
    --primary-grey: #6B7280;
    --light-grey: #F3F4F6;
    --dark-grey: #808284;

    /* Light theme variables - Enhanced for logo visibility */
    --light-bg: #fafbfc;
    --light-bg-secondary: #f1f5f9;
    --light-text: #808284;
    --light-text-secondary: #475569;
    --light-border: #cbd5e1;
    --light-shadow: rgba(0, 0, 0, 0.15);
    --light-header-bg: #ffffff;
    --light-card-bg: #ffffff;
    
    /* Dark theme variables */
    --dark-bg: #111827;
    --dark-bg-secondary: #1f2937;
    --dark-text: #f9fafb;
    --dark-text-secondary: #d1d5db;
    --dark-border: #374151;
    --dark-shadow: rgba(0, 0, 0, 0.3);
}
    
html {
    scroll-behavior: smooth;
}

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

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

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Enhanced Header Animations */
header {
    border-bottom: none !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Button Animations */
.btn-primary, button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
}

.btn-primary::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.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Card Hover Effects */
.bg-white, .service-card, .project-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Loading Animation Enhancement */
.loading-spinner {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite alternate;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Icon Animations */
.service-icon, .fas, .fab {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-icon:hover, .group:hover .fas {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-blue) !important;
}

/* Form Input Animations */
.form-input {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
    border-color: var(--primary-blue);
}

/* Statistics Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Parallax Background Effect */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Professional Services Grid Styles */
.services-grid-container {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 20px 20px 0 0;
}

/* Professional Services Carousel Styles */
.services-carousel-container {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.services-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 20px 20px 0 0;
}

.services-carousel {
    width: 300%; /* 3 slides */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    padding: 15px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.carousel-slide.inactive {
    opacity: 0.3;
}

/* Enhanced Navigation Buttons */
.carousel-nav-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.carousel-nav-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1e40af);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-nav-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.carousel-nav-btn:hover::before {
    opacity: 1;
}

.carousel-nav-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Professional Indicators */
.carousel-indicators {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
}

.indicator.active {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    transform: scale(1.3);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.3);
}

.indicator.active::before {
    width: 6px;
    height: 6px;
    background: white;
}

.indicator:hover:not(.active) {
    background: linear-gradient(135deg, #64748b, #475569);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced Service Cards */
.service-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(59, 130, 246, 0.1);
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

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

.service-card .service-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.service-card h3 {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #1e40af;
}

/* Service Card Content Optimization */
.service-card h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.service-card .w-16 {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.service-card .service-icon {
    font-size: 1.1rem;
}

.service-card .learn-more-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-carousel-container {
        padding: 20px;
    }
    
    .carousel-slide {
        padding: 10px;
    }
    
    .service-card {
        padding: 18px 12px;
        height: 260px;
    }
    
    .service-card h3 {
        font-size: 0.95rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .services-carousel-container {
        padding: 15px;
        border-radius: 16px;
    }
    
    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .carousel-indicators {
        gap: 12px;
        padding: 8px 16px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .service-card {
        padding: 16px 10px;
        height: 240px;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
    }
    
    .service-card p {
        font-size: 0.75rem;
    }
    
    .service-card .w-16 {
        width: 2rem;
        height: 2rem;
        margin-bottom: 10px;
    }
    
    .service-card .service-icon {
        font-size: 1rem;
    }
    
    .service-card .learn-more-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .carousel-slide .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .services-carousel-container {
        padding: 12px;
    }
    
    .service-card {
        height: 220px;
        padding: 14px 10px;
    }
}

/* Stagger Animation Delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Ensure body starts right after header */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix any potential white space at top */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Flowchart Styles */
.flowchart-image-container {
    transition: all 0.3s ease;
}

.flowchart-image-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.flowchart-image {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 60%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

/* Responsive adjustments for flowchart images */
@media (max-width: 768px) {
    .flowchart-image {
        max-width: 85%;
        max-height: 300px;
    }
}

@media (max-width: 640px) {
    .flowchart-image {
        max-width: 95%;
        max-height: 250px;
    }
}

.flowchart-image:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Legacy flowchart styles for backward compatibility */
.flowchart-container {
    position: relative;
    overflow: hidden;
}

.flowchart-step {
    flex-shrink: 0;
}

.flowchart-box {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flowchart-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.flowchart-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.flowchart-box h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.flowchart-box p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.flowchart-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.capability-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.capability-item:hover {
    transform: translateX(4px);
    border-color: currentColor;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Flowcharts */
@media (max-width: 1024px) {
    .flowchart-box {
        min-height: 120px;
        padding: 1.25rem;
    }
    
    .flowchart-box h4 {
        font-size: 1rem;
    }
    
    .flowchart-box p {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .flowchart-container {
        padding: 1rem !important;
    }
    
    .flowchart-box {
        min-height: 100px;
        padding: 1rem;
    }
    
    .flowchart-box i {
        font-size: 1.5rem !important;
    }
    
    .flowchart-box h4 {
        font-size: 0.9rem;
        margin: 0.25rem 0;
    }
    
    .flowchart-box p {
        font-size: 0.8rem;
    }
    
    .flowchart-arrow i {
        font-size: 1.5rem !important;
    }
    
    .capability-item {
        padding: 0.75rem !important;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .flowchart-box {
        min-height: 90px;
        padding: 0.875rem;
    }
    
    .flowchart-box i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .flowchart-box h4 {
        font-size: 0.85rem;
    }
    
    .flowchart-box p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Management page specific fixes */
.management-page header {
    position: fixed !important;
    width: 100% !important;
    z-index: 50 !important;
}

.management-page footer {
    position: static !important;
    margin: 0 !important;
    margin-top: 0 !important;
}

.management-page html,
.management-page body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Dark mode styles */
.dark {
    color-scheme: dark;
}

.dark body {
    background-color: #111827;
    color: #f9fafb;
}

.dark header {
    background-color: #1f2937 !important;
    border-bottom: 1px solid #374151;
}

.dark .nav-link {
    color: #d1d5db !important;
}

.dark .nav-link:hover {
    color: #60a5fa !important;
}

.dark .mobile-menu {
    background-color: #1f2937 !important;
}

.dark #about {
    background: linear-gradient(to bottom, 
        rgba(17, 24, 39, 0) 0%,
        rgba(17, 24, 39, 0.05) 15%,
        rgba(17, 24, 39, 0.2) 35%,
        rgba(17, 24, 39, 0.5) 55%,
        rgba(17, 24, 39, 0.8) 75%,
        rgba(17, 24, 39, 0.95) 90%,
        #111827 100%) !important;
}

/* Dark mode text colors for About section - improved contrast */
.dark #about h2 {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark #about h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dark #about p {
    color: #f3f4f6 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dark #about span {
    color: #f9fafb !important;
}

.dark #about .text-blue-500 {
    color: #60a5fa !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dark .service-card {
    background-color: #1f2937 !important;
    color: #f9fafb;
}

.dark .service-icon {
    color: #9ca3af !important;
}

.dark .service-card:hover .service-icon {
    color: #60a5fa !important;
}

.dark .form-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .form-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.dark footer {
    background-color: #0f172a !important;
}

/* Service Modal Styles */
.service-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.service-modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.service-modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.service-modal-body {
    padding: 30px;
}

.service-modal-body#services {
    padding: 40px 0;
}

#contact {
    padding: 40px 0 !important;
}

.service-image-container {
    margin-bottom: 25px;
}

.service-modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-details h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-details p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features h4 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.service-features li {
    color: #6b7280;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.service-features li:before {
    content: "✓";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Dark mode for service modal */
.dark .service-modal-content {
    background-color: #1f2937;
}

.dark .service-modal-header {
    border-bottom-color: #374151;
}

.dark .service-modal-header h2 {
    color: #f9fafb;
}

.dark .close-btn {
    color: #9ca3af;
}

.dark .close-btn:hover {
    background-color: #374151;
    color: #d1d5db;
}

.dark .service-details h3 {
    color: #f9fafb;
}

.dark .service-details p {
    color: #d1d5db;
}

.dark .service-features h4 {
    color: #e5e7eb;
}

.dark .service-features li {
    color: #d1d5db;
}

/* Header scroll effects */
.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.header-visible {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-grey);
}

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

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

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

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

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 2s ease-in-out;
    transform: scale(1);
    z-index: 1;
}

.hero-image.active {
    opacity: 1;
    animation: kenBurns 8s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateX(0);
    }
    25% {
        transform: scale(1.05) translateX(-2%);
    }
    50% {
        transform: scale(1.08) translateY(-1%);
    }
    75% {
        transform: scale(1.06) translateX(1%);
    }
    100% {
        transform: scale(1.1) translateY(1%);
    }
}

/* Fallback background */
.hero-fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: 2;
    pointer-events: none;
}

.hero-section .text-center {
    position: relative;
    z-index: 3;
}

/* Parallax section base styles */
.parallax-section {
    position: relative;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Hero fade transition effect */
.hero-fade-transition {
    position: relative;
    z-index: 10;
    margin-top: -150px;
    background: linear-gradient(to bottom, 
        rgba(243, 244, 246, 0) 0%,
        rgba(243, 244, 246, 0.1) 15%,
        rgba(243, 244, 246, 0.3) 30%,
        rgba(243, 244, 246, 0.6) 50%,
        rgba(243, 244, 246, 0.85) 70%,
        rgba(243, 244, 246, 0.95) 85%,
        #F3F4F6 100%);
    padding-top: 200px;
    border-radius: 50px 50px 0 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05);
}

/* Featured Projects section overlay effect with fade - professional look */
.featured-projects-section {
    position: relative;
    z-index: 10;
    margin-top: 0;
    background: #F3F4F6;
    padding-top: 80px;
    transition: all 1.5s ease-in-out;
}

/* When header is hidden, featured projects section moves up very slowly for readability */
.featured-projects-section.header-hidden {
    margin-top: 0;
    padding-top: 80px;
    transition: all 1.5s ease-in-out;
}

/* Dark mode for featured projects section */
.dark .featured-projects-section {
    background: linear-gradient(to bottom, 
        rgba(17, 24, 39, 0) 0%,
        rgba(17, 24, 39, 0.1) 10%,
        rgba(17, 24, 39, 0.3) 20%,
        rgba(17, 24, 39, 0.5) 30%,
        rgba(17, 24, 39, 0.7) 40%,
        rgba(17, 24, 39, 0.85) 55%,
        rgba(17, 24, 39, 0.95) 75%,
        rgba(17, 24, 39, 0.98) 90%,
        #111827 100%) !important;
}

/* Dark mode text colors for Featured Projects section */
.dark .featured-projects-section h2 {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark .featured-projects-section .text-blue-500 {
    color: #60a5fa !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Apply coordinated movement to all sections except hero - only on index page */
body:not(.management-page) #services.header-hidden,
body:not(.management-page) #contact.header-hidden,
body:not(.management-page) footer.header-hidden {
    margin-top: -50px;
    transition: all 1.5s ease-in-out;
}

/* Ensure management page footer stays in place */
.management-page footer {
    position: static !important;
    margin-top: 0 !important;
    transform: none !important;
}

/* Parallax speed variations */
.parallax-slow {
    transform: translateY(0);
}

.parallax-medium {
    transform: translateY(0);
}

.parallax-fast {
    transform: translateY(0);
}

/* Fade animation for featured projects content */
.featured-projects-section .container {
    animation: fadeInUp 1s ease-out;
}

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

.project-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.5s;
}

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

.close-modal {
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.swiper {
    width: 100%;
    height: 400px;
}

@media (max-width: 768px) {
    .swiper {
        height: 300px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* About section styling */
.about-image {
    border-radius: 8px;
}

/* Services section styling */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--primary-blue);
    transform: scale(1.2);
}

/* Mobile navigation */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: white;
    z-index: 100;
    padding: 20px;
}

/* Contact form styling */
.form-input {
    transition: all 0.3s ease;
    border: 1px solid var(--light-grey);
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary {
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Loading Spinner/Throbber Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease-in-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loading-text {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Dark mode loading spinner */
.dark .loading-overlay {
    background: rgba(17, 24, 39, 0.95);
}

.dark .loading-spinner {
    border-color: #374151;
    border-top-color: #60a5fa;
}

.dark .loading-text {
    color: #60a5fa;
}

/* Hide loading overlay when page is loaded */
.loaded .loading-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Theme Toggle Dropdown Styles */
.theme-dropdown {
    position: relative;
}

.theme-toggle-btn {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.theme-toggle-btn:hover::before {
    left: 100%;
}

.theme-dropdown-menu {
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.theme-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.theme-option {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

.theme-option:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.theme-option.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Light Theme Styles */
.light {
    color-scheme: light;
}

.light body {
    background-color: var(--light-bg);
    color: var(--light-text);
}

.light header {
    background-color: var(--light-header-bg) !important;
    border-bottom: 2px solid var(--light-border);
    box-shadow: 0 4px 6px -1px var(--light-shadow), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.light .nav-link {
    color: var(--light-text-secondary) !important;
}

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

.light .mobile-menu {
    background-color: var(--light-bg) !important;
}

.light .theme-toggle-btn {
    color: var(--light-text-secondary);
    border-color: var(--light-border);
}

.light .theme-toggle-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.light .theme-dropdown-menu {
    background-color: var(--light-card-bg);
    border-color: var(--light-border);
    box-shadow: 0 10px 15px -3px var(--light-shadow), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.light .theme-option {
    color: var(--light-text);
}

.light .theme-option:hover {
    background-color: rgba(59, 130, 246, 0.08);
}

/* Enhanced logo visibility for light theme */
.light header {
    background-color: var(--light-header-bg) !important;
    border-bottom: 2px solid var(--light-border);
    box-shadow: 0 4px 6px -1px var(--light-shadow), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.light header img[alt*="Logo"] {
    filter: brightness(0.7) contrast(1.4) saturate(1.3) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 8px;
    padding: 2px;
}

.light header img[alt*="Logo"]:hover {
    filter: brightness(0.6) contrast(1.5) saturate(1.4) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transform: scale(1.08);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
}

/* Enhanced logo visibility for footer - same as header */
.light footer img[alt*="Logo"] {
    filter: brightness(0.7) contrast(1.4) saturate(1.3) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 8px;
    padding: 2px;
}

.light footer img[alt*="Logo"]:hover {
    filter: brightness(0.6) contrast(1.5) saturate(1.4) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transform: scale(1.08);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
}
/* Light theme service cards */
.light .service-card {
    background-color: var(--light-card-bg) !important;
    color: var(--light-text);
    border: 1px solid var(--light-border);
    box-shadow: 0 4px 6px -1px var(--light-shadow);
}

.light .service-card:hover {
    box-shadow: 0 20px 25px -5px var(--light-shadow), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.light .service-icon {
    color: var(--light-text-secondary) !important;
}

.light .service-card:hover .service-icon {
    color: var(--primary-blue) !important;
}

/* Light theme form inputs */
.light .form-input {
    background-color: var(--light-bg);
    border-color: var(--light-border);
    color: var(--light-text);
}

.light .form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Light theme featured projects section */
.light .featured-projects-section {
    background: linear-gradient(to bottom, 
        rgba(248, 250, 252, 0) 0%,
        rgba(248, 250, 252, 0.1) 10%,
        rgba(248, 250, 252, 0.3) 20%,
        rgba(248, 250, 252, 0.5) 30%,
        rgba(248, 250, 252, 0.7) 40%,
        rgba(248, 250, 252, 0.85) 55%,
        rgba(248, 250, 252, 0.95) 75%,
        rgba(248, 250, 252, 0.98) 90%,
        #f8fafc 100%) !important;
}

.light .featured-projects-section h2 {
    color: var(--light-text) !important;
    text-shadow: none;
}

.light .featured-projects-section .text-blue-500 {
    color: var(--primary-blue) !important;
    text-shadow: none;
}

/* Light theme project cards */
.light .bg-white {
    background-color: var(--light-card-bg) !important;
    border: 1px solid var(--light-border);
    box-shadow: 0 4px 6px -1px var(--light-shadow);
}

.light .bg-white:hover {
    box-shadow: 0 20px 25px -5px var(--light-shadow), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Light theme footer */
.light footer {
    background-color: #f1f5f9 !important;
    color: var(--light-text);
}

.light footer h3 {
    color: var(--light-text);
}

.light footer p, .light footer a {
    color: var(--light-text-secondary);
}

.light footer a:hover {
    color: var(--primary-blue);
}

/* Light theme loading overlay */
.light .loading-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.light .loading-spinner {
    border-color: var(--light-border);
    border-top-color: var(--primary-blue);
}

.light .loading-text {
    color: var(--primary-blue);
}

/* Light theme service modal */
.light .service-modal-content {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
}

.light .service-modal-header {
    border-bottom-color: var(--light-border);
}

.light .service-modal-header h2 {
    color: var(--light-text);
}

.light .close-btn {
    color: var(--light-text-secondary);
}

.light .close-btn:hover {
    background-color: var(--light-bg-secondary);
    color: var(--light-text);
}

.light .service-details h3 {
    color: var(--light-text);
}

.light .service-details p {
    color: var(--light-text-secondary);
}

.light .service-features h4 {
    color: var(--light-text);
}

.light .service-features li {
    color: var(--light-text-secondary);
}

/* Light theme project modal */
.light .modal-content {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
}

/* Smooth theme transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Theme icon animation */
.theme-icon {
    transition: color 0.3s ease;
}