:root {
    --primary-blue: #00b4ff;
    --bg-dark: #0d0d0d;
    --card-bg: rgba(25, 25, 25, 0.7);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}

/* Background Logic */
.video-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    filter: brightness(95%) grayscale(30%);
}
.video-bg video { width: 100%; height: 100%; object-fit: cover; }

#floating-obj {
    position: fixed;
    top: 15%; 
    right: -5%; /* Starting position */
    width: 25vw; /* Slightly smaller for better pathing */
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    will-change: transform; /* Optimizes for smooth motion */
}

/* Ensure the footer has enough height to see the final position */
footer {
    position: relative;
    z-index: 1;
}

/* Nav System */
.header-branding {
    position: fixed;
    top: 30px; left: 40px;
    z-index: 100;
}
.main-logo { height: 65px; }

.nav-toggle {
    position: fixed;
    top: 30px; right: 40px;
    width: 60px; height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger {
    width: 30px; height: 2px;
    background: white;
    position: relative;
}
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; width: 30px; height: 2px; background: white; transition: 0.3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.side-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 400px; height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(40px);
    z-index: 1000;
    transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.side-nav.active { right: 0; }

.nav-item {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    text-decoration: none;
    margin: 20px 0;
    font-weight: 800;
    transition: 0.3s;
}
.nav-item:hover { color: var(--primary-blue); padding-left: 15px; }

.hero-section { padding-top: 140px;}

/* Sections */
section { padding: 80px 0; min-height: auto; position: relative; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; }
.text-outline { -webkit-text-stroke: 1px #fff; color: transparent; }
.text-blue { color: var(--primary-blue); }

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 3rem;
}

.btn-premium {
    background: var(--primary-blue);
    color: white; padding: 16px 40px;
    border-radius: 50px; text-decoration: none;
    font-weight: 600; display: inline-block;
}

/* Service Cards */
.service-card {
    height: 420px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
}
.service-img { width: 100%; height: 100%; }
.service-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4) grayscale(1); transition: 0.5s; }
.service-body {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2.5rem;
    background: linear-gradient(to top, #111 40%, transparent);
}
.service-description { max-height: 0; opacity: 0; overflow: hidden; transition: 0.4s; color: #aaa; font-size: 0.9rem; margin-top: 10px; }

.service-card:hover .service-description { max-height: 150px; opacity: 1; }
.service-card:hover .service-img img { filter: brightness(0.6) grayscale(0); transform: scale(1.1); }

/* Animation Utility */
.reveal { opacity: 0; transform: translateY(40px); }

@media (max-width: 768px) {
    .side-nav { width: 100%; }
    .display-1 { font-size: 3rem; }
}


.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Area covering the logo and toggle */
    z-index: 1001;
    transition: transform 0.4s ease-in-out; /* Smooth slide */
}

/* This class will be added via Javascript */
.nav-up {
    transform: translateY(-110px); 
}

/* Adjusting logo and toggle positions relative to the header-nav */
.header-branding {
    position: absolute;
    top: 30px; left: 40px;
}

.nav-toggle {
    position: absolute;
    top: 20px; right: 40px; /* Lowered slightly to align with branding */
    width: 60px; height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}



.about-fullscreen {
    padding: 0 !important;
    overflow: hidden;
    background: transparent;
}

.about-split-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.about-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10% 5% 10% 10%;
    background: rgba(16, 16, 16, 0.4);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.about-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.stats-fullscreen-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 80%;
}

.stat-box {
    position: relative;
    padding: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    font-weight: 600;
}

.stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; 
    height: 4px;
    background: var(--primary-blue);
    box-shadow: 0 0 15px var(--primary-blue);
    /* This handles the smooth sliding every time the width changes */
    transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1); 
}

/* Scroll Hint Line */
.scroll-down-hint .line {
    width: 60px;
    height: 2px;
    background: var(--primary-blue);
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .about-split-container { flex-direction: column; }
    .stat-number { font-size: 3.5rem; }
}



.vision-perspective {
    perspective: 1500px; /* Essential for 3D effect */
    background: transparent;
}

.perspective-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 50px 0;
}

.perspective-card {
    position: relative;
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 60px 40px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Initial 3D Slant */
.mission { transform: rotateY(25deg) translateZ(0); }
.vision { transform: rotateY(-25deg) translateZ(0); }

.perspective-card:hover {
    transform: rotateY(0deg) scale(1.05) translateZ(50px);
    border-color: var(--primary-blue);
    background: rgba(0, 180, 255, 0.05);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 180, 255, 0.3);
}

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, var(--primary-blue), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
}

.perspective-card:hover .card-glow {
    opacity: 0.15;
}

@media (max-width: 992px) {
    .perspective-wrapper { flex-direction: column; align-items: center; }
    .mission, .vision { transform: rotateY(0) rotateX(10deg); }
}

.glass-window-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to right,
        rgba(13, 13, 13, 0.3) 0%,
        transparent 15%,
        transparent 85%,
        rgba(13, 13, 13, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none; /* Allows click-through */
}


/* --- BENTO GALLERY GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 25px;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-large { grid-column: span 2; grid-row: span 2; }
.item-tall { grid-column: span 1; grid-row: span 2; }
.item-square { grid-column: span 1; grid-row: span 1; }

.bento-card {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.7) grayscale(0.2);
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0.8;
    transition: 0.4s;
}

.bento-overlay h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 10px;
    color: #fff;
}

.bento-overlay .badge {
    background: var(--primary-blue);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover Effects */
.bento-item:hover .bento-card img {
    transform: scale(1.1);
    filter: brightness(1) grayscale(0);
}

.bento-item:hover .bento-overlay {
    opacity: 1;
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-large, .item-tall { grid-column: span 2; }
}

/* --- NEW PORTFOLIO DESIGN --- */
.portfolio-grid {
    width: 100%;
}

.portfolio-main, .portfolio-sub {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 450px; /* Base height for main images */
    cursor: pointer;
}

.portfolio-main.mini {
    height: 300px;
}

.portfolio-sub {
    height: 400px; /* Slightly shorter for the split row */
}

.portfolio-main img, .portfolio-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents the "cropping" issue */
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    filter: brightness(0.8);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.portfolio-content .badge {
    background: var(--primary-blue);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Hover Animation */
.portfolio-main:hover img, .portfolio-sub:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

@media (max-width: 992px) {
    .portfolio-main, .portfolio-sub {
        height: 350px;
    }
}


/* --- WORKFORCE SOLUTIONS REVAMP --- */
/* --- FIXED WORKFORCE GRID STYLES --- */
.workforce-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    opacity: 1 !important; /* Ensure the grid container itself is visible */
}

.workforce-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.5s ease;
    /* This ensures they don't stay hidden if JS loads slowly */
    min-height: 200px; 
}

.workforce-card .card-icon { 
    color: var(--primary-blue) !important; 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    opacity: 1 !important; 
    display: block;
}

.card-title { 
    color: #ffffff !important; 
    opacity: 1 !important; 
    font-size: 1.25rem; 
    font-weight: 700; 
    margin: 0; 
    display: block;
}

.card-inner { position: relative; z-index: 2; }

.workforce-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 20px;
    line-height: 1.4;
    transition: 0.4s;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    transition: 0.4s;
}

.card-footer-line {
    width: 30px;
    height: 3px;
    background: var(--primary-blue);
    margin-top: 15px;
    transition: width 0.4s ease;
}

/* Hover State */
.workforce-card:hover {
    background: rgba(0, 180, 255, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.workforce-card:hover h3 { color: var(--primary-blue); }
.workforce-card:hover .card-footer-line { width: 100%; }

.workforce-card:hover .card-icon {
    transform: scale(1.1) rotate(-10deg);
    filter: drop-shadow(0 0 10px var(--primary-blue));
}

/* Accent Decorations */
.accent-line {
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .workforce-grid { grid-template-columns: 1fr; }
}



.title-container {
    min-height: 80px; /* Force enough space for 2 lines */
    display: flex;
    align-items: center;
    visibility: visible !important; /* Force visibility for testing */
    
}


.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2; /* Tighten the line height for better look with <br> */
    margin: 0; /* Remove default margins that cause offset */
    transition: 0.4s;
    color: #ffffff;
}

/* Fix for icon and text brightness */
.workforce-card .card-icon {
    color: var(--primary-blue) !important; /* Ensure the blue is vibrant */
    opacity: 1 !important;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.workforce-card .card-title {
    color: #ffffff !important; /* Ensure the text is pure white */
    opacity: 1 !important;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

/* Ensure the container doesn't dim the content */
.workforce-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Title container alignment fix */
.title-container {
    min-height: 60px;
    display: flex;
    align-items: center;
}















/* --- STAFFING MATRIX (SM) STYLES --- */
.sm-section { background: rgba(255,255,255,0.01); position: relative; overflow: hidden; }

.sm-image-wrapper {
    position: relative;
    border-radius: 40px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.sm-main-img {
    width: 100%;
    border-radius: 30px;
    filter: brightness(0.8) contrast(1.1);
}

.sm-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-blue);
    padding: 25px;
    border-radius: 25px;
    color: #000;
    box-shadow: 0 15px 30px rgba(0, 180, 255, 0.3);
}

.sm-experience-badge .sm-number { font-size: 2rem; font-weight: 800; display: block; line-height: 1; }
.sm-experience-badge .sm-text { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }

.sm-subtitle { color: var(--primary-blue); text-transform: uppercase; letter-spacing: 3px; font-weight: 700; margin-bottom: 15px; }
.sm-title { font-size: 3rem; font-weight: 800; margin-bottom: 25px; }
.sm-description { color: rgba(255,255,255,0.6); margin-bottom: 40px; line-height: 1.8; }

.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.sm-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
}

.sm-card:hover { 
    background: rgba(0, 180, 255, 0.08); 
    border-color: var(--primary-blue);
    transform: translateX(10px);
}

.sm-icon-circle {
    min-width: 45px;
    height: 45px;
    background: rgba(0, 180, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.sm-card-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.sm-card-info p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0; }

/* RE-TRIGGERING BARS CSS */
.stat-bar { width: 0%; height: 2%; background: var(--primary-blue); transition: none; }












/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #fff;
}

/* --- ABOUT BARS FIX --- */
.stat-bar-container {
    width: 100%;
    height: 6px; /* Fixed height ensures it doesn't cover text */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.stat-bar {
    width: 0%; /* Start at 0 */
    height: 4%;
    background: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.5);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
}











/* --- EXPANDED AMBIENT STREAM --- */
.industrial-ambient-stream {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.stream-item {
    position: absolute;
    color: var(--primary-blue);
    opacity: 0.28; /* Increased visibility */
    filter: drop-shadow(0 0 15px rgba(0, 180, 255, 0.4));
    will-change: transform;
    transition: opacity 0.3s ease;
}

/* Specific Placements across the entire vertical height */
.s-1 { top: 10%; left: 8%; font-size: 7rem; }
.s-2 { top: 25%; right: 12%; font-size: 5rem; }
.s-3 { top: 45%; left: 15%; font-size: 9rem; }
.s-4 { top: 60%; right: 5%; font-size: 6rem; }
.s-5 { bottom: 20%; left: 5%; font-size: 8rem; }
.s-6 { bottom: 10%; right: 20%; font-size: 10rem; }
.s-7 { top: 75%; left: 35%; font-size: 5rem; }
.s-8 { top: 5%; right: 30%; font-size: 4rem; }

/* Hide on very small screens to keep mobile clean */
@media (max-width: 768px) {
    .stream-item { opacity: 0.08; font-size: 4rem !important; }
}











/* --- MODERN FOOTER STYLES --- */
.footer-section {
    background-color: var(--bg-dark);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    opacity: 0.6;
}

.footer-logo-text {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.footer-about {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1.25rem;
    position: relative;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-blue);
    margin-top: 5px;
}

/* Social Icons matching your screenshot */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: var(--bg-dark);
    border-radius: 4px; /* Slightly rounded as in screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--primary-blue);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

@media (max-width: 991px) {
    .footer-section { padding: 60px 0 30px; }
    .footer-heading { margin-top: 20px; }
}

/* Styling for clickable contact links */
.footer-link-item {
    color: rgba(255, 255, 255, 0.7); /* Matches your footer text color */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link-item:hover {
    color: var(--primary-blue); /* Turns blue when hovered */
    text-decoration: none;
}


.contact-link {
    color: #ffffff; /* Keeps text white */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-blue); /* Highlights in your brand blue on hover */
    text-decoration: none;
}

/* Optional: spacing fix if they look too tight */
.contact-info .d-flex {
    transition: transform 0.2s ease;
}
.contact-info .d-flex:hover {
    transform: translateX(5px); /* Subtle nudge effect when hovering contact lines */
}






/* --- Developer Credit Styles --- */
.footer-divider {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.dev-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dev-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Adjust for mobile screens so it doesn't look cramped */
@media (max-width: 576px) {
    .footer-divider {
        display: none; /* Hide vertical bar on mobile */
    }
    .footer-bottom p {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}