
/* Global Styles - Preserved from your existing code */
:root {
            --peach: #FFDAB9;
            --orange: #f46c34;
            --dark-orange: #d15d2c;
            --dark: #1a1a2e;
            --light: #f8f9fa;
            --gray: #6c757d;
            --green: #28a745;
            --red: #dc3545;
            --neon: #00ffff;
            --fire: #ff4500;
        }
        
        [data-theme="light"] {
            --peach: #FFDAB9;
            --orange: #f46c34;
            --dark-orange: #d15d2c;
            --dark: #f8f9fa;
            --light: #1a1a2e;
            --gray: #6c757d;
            --green: #28a745;
            --red: #dc3545;
            --neon: #00ffff;
            --fire: #ff4500;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Preserved font-family */
        }
        
        body {
            background-color: var(--dark);
            color: var(--light);
            overflow: auto; /* Ensure body overflow is auto after preload */
            position: relative;
        }

/* New Preloader Styles - from your provided working code */

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Fixed white background for preloader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* Central Energy Source */
.energy-core {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff, #f46c34, #d84315);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(244, 108, 52, 0.6), 0 0 100px rgba(244, 108, 52, 0.4);
    animation: pulse 1s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(244, 108, 52, 0.6), 0 0 100px rgba(244, 108, 52, 0.4);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 80px rgba(244, 108, 52, 0.8), 0 0 120px rgba(244, 108, 52, 0.6), 0 0 150px rgba(244, 108, 52, 0.4);
    }
}

/* Lightning Container */
.lightning-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Individual Lightning Bolt */
.lightning {
    position: absolute;
    stroke: #f46c34;
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 10px rgba(244, 108, 52, 0.8)) drop-shadow(0 0 20px rgba(244, 108, 52, 0.6));
    opacity: 0;
    animation: flash 0.3s ease-out;
}

@keyframes flash {
    0% {
        opacity: 0;
        stroke-width: 1;
    }
    20% {
        opacity: 1;
        stroke-width: 4;
    }
    100% {
        opacity: 0;
        stroke-width: 1;
    }
}

/* Electric Arcs */
.arc {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid transparent;
    border-radius: 50%;
    opacity: 0;
    animation: arcFlash 1.5s ease-out infinite;
}

@keyframes arcFlash {
    0% {
        opacity: 0;
        transform: scale(0.8);
        border-color: transparent;
        box-shadow: none;
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
        border-color: #f46c34;
        box-shadow: 0 0 20px rgba(244, 108, 52, 0.6), inset 0 0 20px rgba(244, 108, 52, 0.4);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
        border-color: transparent;
        box-shadow: none;
    }
}

/* Energy Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f46c34;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(244, 108, 52, 0.8);
    opacity: 0;
}

/* Electric Field Lines */
.field-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(244, 108, 52, 0.8), transparent);
    opacity: 0;
    animation: fieldPulse 2s ease-in-out infinite;
}

@keyframes fieldPulse {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* Energy Burst Effect */
.burst {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 108, 52, 0.4), transparent 70%);
    opacity: 0;
    animation: burstEffect 3s ease-out infinite;
}

@keyframes burstEffect {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    10% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* Service Circles */
.service-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(244, 108, 52, 0.15);
    border: 2px solid #f46c34;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    animation: expandFade 1.8s ease-out forwards; /* Slightly longer animation */
    z-index: 15; /* Increased z-index */
    padding: 8px; /* Reduced padding for better text fit */
    overflow: visible; /* Ensure text isn't clipped */
    line-height: 1.2; /* Better line spacing for multi-line text */
    hyphens: auto; /* Allow word breaking for long text */
    word-wrap: break-word; /* Break long words */
}

@keyframes expandFade {
    0% {
        width: 80px; /* Reduced initial size for better fit */
        height: 80px; /* Reduced initial size for better fit */
        opacity: 0;
        font-size: 8px;
    }
    20% {
        opacity: 1;
    }
    100% {
        width: 220px; /* Slightly smaller final size */
        height: 220px;
        opacity: 0;
        font-size: 14px; /* Smaller font for longer service names */
    }
}

/* Loading Text */
.discharge-text {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: textFlicker 1.5s ease-in-out infinite;
}

@keyframes textFlicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Loading Meter */
.loading-meter {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #f46c34;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f46c34, #d84315);
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(244, 108, 52, 0.6);
    transition: width 0.2s ease;
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
}

/* Particle Background - Preserved from your existing code */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Navigation Container */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: var(--dark);
    backdrop-filter: blur(10px);
    padding: 10px 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 102;
}

.logo img {
    height: 45px;
    margin-right: 15px;
}

/* Navigation wrapper to group hamburger and main nav */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: 1px solid var(--orange);
    color: var(--orange);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

#theme-toggle:hover {
    background-color: var(--orange);
    color: white;
}

/* Navigation wrapper to group nav items */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger Menu Styles - Positioned at the far right */
.hamburger-menu {
    display: flex; /* Always show hamburger menu */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    position: relative;
    margin-left: 20px; /* Add some spacing from main nav */
}

.hamburger-menu:hover {
    background-color: rgba(244, 108, 52, 0.1);
    border-radius: 5px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--orange);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(244, 108, 52, 0.5); /* Add shadow for visibility */
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-content {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--dark);
    backdrop-filter: blur(10px);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.hamburger-content.active {
    right: 0;
}

.hamburger-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hamburger-nav li {
    margin-bottom: 20px;
}

.hamburger-nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.hamburger-nav a:hover {
    color: var(--orange);
}

/* Main Navigation - Always show the main nav links */
.main-nav {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        height: 35px;
    }
}

/* Hero Section - Preserved from your existing code */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--orange), var(--dark-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    margin: 10px;
    background: linear-gradient(45deg, var(--orange), var(--dark-orange));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--orange);
    border-radius: 25px;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 10px;
    background-color: var(--orange);
    border-radius: 3px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* Section Styling - Preserved from your existing code */
section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: auto;
}

/* Remove margin from the last section to prevent gap before footer */
section:last-of-type {
    margin-bottom: 0;
}

/* Ensure no margin on the last team section */
.team:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--peach), var(--orange));
    border-radius: 2px;
}

/* Market Ticker - Enhanced with better animation effects */
.market-ticker {
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: hidden;
}

.ticker-wrapper {
    background: linear-gradient(135deg, var(--dark) 0%, rgba(26, 26, 46, 0.95) 100%);
    border-radius: 20px;
    padding: 25px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(244, 108, 52, 0.1);
}

.ticker-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 108, 52, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.ticker-container {
    display: flex;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: ticker 35s linear infinite; /* Slowed down for better readability */
    will-change: transform;
    animation-delay: 0.5s; /* Small delay to ensure elements are loaded */
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 40px;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    transform: scale(1.05);
    background: rgba(244, 108, 52, 0.1);
    border-radius: 10px;
}

.ticker-name {
    font-weight: bold;
    margin-right: 12px;
    color: var(--orange);
    text-shadow: 0 0 5px rgba(244, 108, 52, 0.3);
}

.ticker-value {
    margin-right: 12px;
    font-weight: 600;
    color: var(--light);
}

.ticker-change {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.ticker-change.positive { 
    color: var(--green);
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.2);
}

.ticker-change.negative { 
    color: var(--red);
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.2);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Services Section (SIMPLIFIED) - Preserved from your existing code */
.services {
    background-color: var(--dark);
    border-radius: 20px;
    padding: 80px 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark);
    border: 1px solid var(--gray);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.2);
    border-top: 2px solid var(--orange);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--orange);
}

.service-card p {
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-card ul {
    list-style-type: none;
    padding-left: 0;
}

.service-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--orange);
}

/* Team Section (SIMPLIFIED) - Fixed spacing */
.team {
    background-color: var(--dark);
    border-radius: 20px;
    padding: 60px 50px 0; /* Removed bottom padding to eliminate gap before footer */
    margin-bottom: 0; /* Ensure no bottom margin creates gap */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--dark);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.2);
}

.member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
     transform: scale(1.05);
}

.member-info {
    padding: 20px;
}

.member-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--orange);
}

.member-position {
    color: var(--orange);
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    color: var(--light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.member-social a:hover {
    color: var(--orange);
}

/* Footer - Fixed spacing */
footer {
    padding: 40px 50px 30px; /* Reduced top padding */
    text-align: center;
    background-color: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0; /* Remove any top margin */
    margin: 0; /* Ensure no margins */
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icons a {
    color: var(--light);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--orange);
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Alert Messages */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Manpower Specific Styles */
.manpower-intro,
.jobs,
.testimonials,
.manpower-blog,
.contact-info {
    padding: 80px 50px;
    max-width: 1200px;
    margin: auto;
}

.section-dark {
    background-color: var(--dark);
    border-radius: 20px;
}

.section-light {
    background-color: var(--light);
    color: var(--dark);
    border-radius: 20px;
}

.section-light .section-title {
    color: var(--dark);
}

.section-light p,
.section-light h4 {
    color: var(--gray);
}

.jobs-grid,
.testimonial-grid,
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.job-card,
.testimonial-card,
.blog-card {
    background: var(--dark);
    border: 1px solid var(--gray);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover,
.testimonial-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.2);
    border-top: 2px solid var(--orange);
}

.job-card h3,
.blog-card h3 {
    color: var(--orange);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.job-card p,
.blog-card p {
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 15px;
}

.testimonial-card h4 {
    color: var(--orange);
    text-align: right;
}

.cta-button-small {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--orange), var(--dark-orange));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(255, 140, 0, 0.3);
}

/* Simple Motion Art for Manpower pages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.manpower-intro .intro-content,
.jobs-grid .job-card,
.testimonial-grid .testimonial-card,
.blog-preview-grid .blog-card,
.roadmap-container .roadmap-item,
.documents-container .document-category li {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0; /* Initial state */
}

/* Add delays for staggered animation */
.jobs-grid .job-card:nth-child(1) { animation-delay: 0.1s; }
.jobs-grid .job-card:nth-child(2) { animation-delay: 0.2s; }
.jobs-grid .job-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-grid .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-grid .testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-grid .testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.blog-preview-grid .blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-preview-grid .blog-card:nth-child(2) { animation-delay: 0.2s; }

.roadmap-container .roadmap-item:nth-child(1) { animation-delay: 0.1s; }
.roadmap-container .roadmap-item:nth-child(2) { animation-delay: 0.2s; }
.roadmap-container .roadmap-item:nth-child(3) { animation-delay: 0.3s; }
.roadmap-container .roadmap-item:nth-child(4) { animation-delay: 0.4s; }
.roadmap-container .roadmap-item:nth-child(5) { animation-delay: 0.5s; }
.roadmap-container .roadmap-item:nth-child(6) { animation-delay: 0.6s; }

.documents-container .document-category:nth-child(1) li:nth-child(1) { animation-delay: 0.1s; }
.documents-container .document-category:nth-child(1) li:nth-child(2) { animation-delay: 0.2s; }
.documents-container .document-category:nth-child(1) li:nth-child(3) { animation-delay: 0.3s; }
.documents-container .document-category:nth-child(1) li:nth-child(4) { animation-delay: 0.4s; }

.documents-container .document-category:nth-child(2) li:nth-child(1) { animation-delay: 0.5s; }
.documents-container .document-category:nth-child(2) li:nth-child(2) { animation-delay: 0.6s; }
.documents-container .document-category:nth-child(2) li:nth-child(3) { animation-delay: 0.7s; }

.documents-container .document-category:nth-child(3) li:nth-child(1) { animation-delay: 0.8s; }
.documents-container .document-category:nth-child(3) li:nth-child(2) { animation-delay: 0.9s; }
.documents-container .document-category:nth-child(3) li:nth-child(3) { animation-delay: 1.0s; }


/* Testimonial Carousel Styles - Enhanced with elegant animations */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--dark);
    background: linear-gradient(135deg, var(--dark) 0%, rgba(26, 26, 46, 0.95) 100%);
    border: 1px solid rgba(244, 108, 52, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother easing */
}

/* Testimonial Card Styling - Enhanced */
.carousel-slides .testimonial-card {
    min-width: 100%;
    box-sizing: border-box;
    background: var(--dark);
    border: none;
    border-radius: 0;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.carousel-slides .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.carousel-slides .testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slides .testimonial-card.active::before {
    border-color: var(--orange);
    animation: drawBorder 0.6s ease-in-out;
}

.carousel-slides .testimonial-card:hover {
    opacity: 0.9;
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(244, 108, 52, 0.1);
}

.carousel-slides .testimonial-card p {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.carousel-slides .testimonial-card h4 {
    font-size: 1.1rem;
    color: var(--orange);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(244, 108, 52, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 20;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover {
    background-color: var(--orange);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(244, 108, 52, 0.4);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    padding: 20px 0;
    background-color: var(--dark);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--gray);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    transform: scale(0.8);
    animation: dotPulse 2s infinite;
}

.dot.active,
.dot:hover {
    background-color: var(--orange);
    transform: scale(1.2);
    animation: none;
}

@keyframes dotPulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(0.9); }
    100% { transform: scale(0.8); }
}

/* Responsive Design - Preserved from your existing code */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    section, .services, .team {
        padding: 60px 20px;
    }
}

/* FRAMER-TYPE ANIMATIONS - Mouse Depth Sensor Effects */

/* Custom Cursor - Fixed to prevent text interference */
.custom-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(244, 108, 52, 0.6), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: normal; /* Changed from difference to prevent text bloating */
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
    display: none; /* Hidden by default, will be shown via JS */
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(244, 108, 52, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Enhanced Service Card Styles with Drawing Animation */
.service-card {
    background: var(--dark);
    border: 1px solid var(--gray);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Card Drawing Effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--orange);
    border-radius: 15px;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: drawBorder 0.6s ease-in-out;
}

@keyframes drawBorder {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    25% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    50% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%);
    }
    75% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(244, 108, 52, 0.25);
    border-top: 2px solid var(--orange);
}

/* Enhanced Team Member Card Styles with Drawing Animation */
.team-member {
    background-color: var(--dark);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    cursor: pointer;
    position: relative;
}

/* Team Card Drawing Effect */
.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--orange);
    border-radius: 15px;
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 1;
}

.team-member:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: drawBorder 0.6s ease-in-out;
}

.team-member:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(244, 108, 52, 0.2);
}

/* Mouse Particles - Disabled to prevent text issues */
.mouse-particle {
    display: none; /* Disabled to prevent text bloating issues */
}

/* Magnetic Effects for Interactive Elements */
.cta-button, .nav-links a, .logo, .hamburger-menu {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(255, 140, 0, 0.4);
}

/* Scroll Reveal Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered reveal animation delays */
.service-card.reveal-element:nth-child(1) { transition-delay: 0.1s; }
.service-card.reveal-element:nth-child(2) { transition-delay: 0.2s; }
.service-card.reveal-element:nth-child(3) { transition-delay: 0.3s; }
.service-card.reveal-element:nth-child(4) { transition-delay: 0.4s; }
.service-card.reveal-element:nth-child(5) { transition-delay: 0.5s; }
.service-card.reveal-element:nth-child(6) { transition-delay: 0.6s; }

.team-member.reveal-element:nth-child(1) { transition-delay: 0.1s; }
.team-member.reveal-element:nth-child(2) { transition-delay: 0.2s; }
.team-member.reveal-element:nth-child(3) { transition-delay: 0.3s; }
.team-member.reveal-element:nth-child(4) { transition-delay: 0.4s; }

/* Enhanced Hover Effects for Team Member Images */
.member-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.member-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(244, 108, 52, 0.1), rgba(244, 108, 52, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-member:hover .member-image::before {
    opacity: 1;
}

.member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(0.2);
}

.team-member:hover .member-image img {
    transform: scale(1.1);
    filter: grayscale(0);
}

/* Enhanced Section Titles with Glow Effect */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--orange), var(--dark-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(244, 108, 52, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--peach), var(--orange));
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(244, 108, 52, 0.5);
}

/* Parallax Background Enhancement */
.hero, .services, .team {
    will-change: transform;
}

/* Enhanced CTA Button with Ripple Effect */
.cta-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 15px 40px;
    margin: 10px;
    background: linear-gradient(45deg, var(--orange), var(--dark-orange));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 5px 15px rgba(244, 108, 52, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Navigation Link Enhancements */
.nav-links a {
    position: relative;
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--orange);
    background: rgba(244, 108, 52, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--orange), var(--dark-orange));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(244, 108, 52, 0.6);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Responsive adjustments for animations */
@media (max-width: 768px) {
    .service-card, .team-member {
        transition: transform 0.3s ease;
    }
    
    .service-card:hover, .team-member:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .custom-cursor {
        display: none; /* Hide custom cursor on mobile */
    }
    
    .mouse-particle {
        display: none; /* Hide mouse particles on mobile */
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .service-card, .team-member, .reveal-element {
        transition: none;
    }
    
    .custom-cursor, .mouse-particle {
        display: none;
    }
}