/* 
 * Techphin - Premium IT Software Development Company
 * High-End Dark Theme UI (Midnight Edition)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --primary-glow: #3b82f6;
    --secondary-glow: #06b6d4;
    --accent-glow: #a855f7;
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --nav-bg: rgba(3, 7, 18, 0.8);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    --glow-shadow: rgba(59, 130, 246, 0.15);
    --grid-color: rgba(59, 130, 246, 0.03);
    --nav-shadow: none;
    --carousel-inv: 0;
    --glass-text-muted: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --nav-bg: rgba(251, 251, 253, 0.85);
    --primary-glow: #e11d48; /* Premium Rose */
    --secondary-glow: #4f46e5; /* Indigo */
    --accent-glow: #0ea5e9; /* Sky Blue */
    --card-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
    --glow-shadow: rgba(225, 29, 72, 0.05);
    --grid-color: rgba(79, 70, 229, 0.02);
    --nav-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    --carousel-inv: 1;
    --glass-text-muted: rgba(0, 0, 0, 0.45);
    --overlay-bg: rgba(255, 255, 255, 0.85);
    --overlay-gradient: linear-gradient(to top, #f8fafc 40%, transparent);
}

[data-theme="light"] body {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Logo Adaptation - Light Mode (Enhanced for tplogo.svg) */
[data-theme="light"] .navbar-brand img,
[data-theme="light"] .footer-logo img {
    /* Using tplogo.svg (Red icon, White text) in light mode.
       We MUST invert only the white text parts if possible, but since it's an image,
       we use a carefully tuned filter to keep the red recognizable while turning white to black. */
    /* filter: invert(0.9) hue-rotate(180deg) contrast(1.5) brightness(0.8); */
    transition: var(--transition-smooth);
}

/* Dark Mode Logo - Original Red & White Preserved */
.navbar-brand img,
.footer-logo img {
    filter: none;
    transition: var(--transition-smooth);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .text-white:not(.btn-premium .text-white):not(.btn-premium),
[data-theme="light"] .text-white-50,
[data-theme="light"] .lead.text-white {
    color: var(--text-primary) !important;
    opacity: 0.9 !important;
}

[data-theme="light"] .bg-dark,
[data-theme="light"] .bg-black,
[data-theme="light"] .bg-opacity-75,
[data-theme="light"] .bg-opacity-25,
[data-theme="light"] .bg-opacity-10 {
    background-color: var(--bg-card) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] i.text-primary {
    color: var(--primary-glow) !important;
}

[data-theme="light"] .text-white,
[data-theme="light"] .text-white-50,
[data-theme="light"] .lead.text-white,
[data-theme="light"] .display-6.text-white,
[data-theme="light"] .modal-content h2,
[data-theme="light"] .modal-content h5,
[data-theme="light"] .modal-content p:not(.text-secondary) {
    color: var(--text-primary) !important;
}

[data-theme="light"] .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(0.2) !important;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .glass-card:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-right: 15px;
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    background: var(--primary-glow);
    color: #ffffff;
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Global Reset & Base */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

/* Inner Hero Stylization */
.inner-hero {
    position: relative;
    padding: 180px 0 100px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(3, 7, 18, 0.85), rgba(3, 7, 18, 0.95)), url('../img/home/background.png');
    overflow: hidden;
}

[data-theme="light"] .inner-hero {
    background-image: none !important;
    background-color: var(--bg-dark) !important;
}

[data-theme="light"] .inner-hero::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.85));
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.85), var(--bg-dark));
    z-index: 1;
}

.inner-hero .container {
    position: relative;
    z-index: 2;
}

/* Page Specific Hero Backgrounds */
.hero-about { background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }
.hero-services { background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }
.hero-portfolio { background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }
.hero-blog { background-image: url('https://images.unsplash.com/photo-1432821596592-e2c18b78144f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }
.hero-contact { background-image: url('https://images.unsplash.com/photo-1516387933999-ed3215a1395e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }

/* Animated Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, var(--glow-shadow) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--glow-shadow) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Typography & Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--text-primary), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.hero-tagline {
    display: inline-block;
    color: var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow), var(--accent-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .section-title h2 {
    background: linear-gradient(to right, var(--text-primary) 20%, var(--secondary-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Navbar */
.navbar {
    padding: 25px 0;
    background: transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
    box-shadow: var(--nav-shadow);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    letter-spacing: -1px;
}

.navbar-brand img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px;
    }
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    margin: 0 15px;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition-smooth);
    padding: 8px 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-glow);
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-glow) !important;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}


@media (max-width: 1200px) {
    .nav-link {
        margin: 0 10px;
        font-size: 0.85rem;
    }
}

/* Dropdown Modern Styling */
.navbar .dropdown-menu {
    background: var(--nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    min-width: 240px;
    margin-top: 15px;
}

[data-theme="light"] .navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.navbar .dropdown-item {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.navbar .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    color: var(--primary-glow);
    padding-left: 25px;
}

[data-theme="light"] .navbar .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.05), transparent);
}

.navbar .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: middle;
    content: "";
    border-top: 0.35em solid;
    border-right: 0.35em solid transparent;
    border-bottom: 0;
    border-left: 0.35em solid transparent;
    transition: transform 0.3s ease;
}

.navbar .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Desktop Hover Interaction */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    .navbar .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Hero & Visuals */
.hero-img-box {
    position: relative;
    z-index: 1;
}

.hero-img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 2;
    border-radius: 24px;
    opacity: 0.3;
}

.hero h1 {
    letter-spacing: -2px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.lead {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

.hero-tagline {
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow), var(--accent-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 2px 0;
}

[data-theme="light"] .hero-tagline {
    font-weight: 700;
    letter-spacing: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
.btn-premium {
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px var(--glow-shadow);
}

.btn-premium:hover {
    box-shadow: 0 10px 30px var(--glow-shadow);
    color: #ffffff;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-4px);
    color: #ffffff;
}

/* Hero Slider Section */
.hero-slider-section {
    min-height: 100vh;
    background: linear-gradient(rgba(3, 7, 18, 0.4), rgba(3, 7, 18, 0.9)), url('../img/home/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero-slider-section {
    background: var(--bg-dark) !important;
    background-image: none !important;
}

.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
    height: 100vh;
}

.hero-slider-section .carousel-item {
    padding-top: 100px;
    display: flex;
    align-items: center;
    position: relative;
}

[data-theme="light"] .hero-slider-section .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.2));
    z-index: 0;
}

.hero-slider-section .container {
    position: relative;
    z-index: 1;
}

/* Animations for slide content */
.carousel-item .hero-tagline {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.carousel-item h1 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
    font-size: 4.5rem;
    line-height: 1.1;
}

.carousel-item .lead {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
}

.carousel-item .btn-premium,
.carousel-item .hover-primary {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.8s;
}

.carousel-item .hero-img-box {
    opacity: 0;
    transform: scale(0.9) translateX(50px);
    transition: all 1s ease 0.5s;
}

.carousel-item.active .hero-tagline,
.carousel-item.active h1,
.carousel-item.active .lead,
.carousel-item.active .btn-premium,
.carousel-item.active .hover-primary {
    opacity: 1;
    transform: translateY(0);
}

.carousel-item.active .hero-img-box {
    opacity: 1;
    transform: scale(1) translateX(0);
}

/* Indicators Styling */
.hero-slider-section .carousel-indicators {
    bottom: 50px;
    justify-content: flex-start;
    margin-left: 10%;
    margin-right: 10%;
    gap: 15px;
}

.hero-slider-section .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--border-glass);
    border: none;
    transition: var(--transition-smooth);
}

.hero-slider-section .carousel-indicators .active {
    background: linear-gradient(90deg, var(--primary-glow), var(--accent-glow));
    width: 100px;
}

/* Control Buttons */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: var(--transition-smooth);
    filter: invert(var(--carousel-inv, 0));
}

.hero-slider-section:hover .carousel-control-prev,
.hero-slider-section:hover .carousel-control-next {
    opacity: 0.5;
}

.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
    opacity: 1;
    color: var(--primary-glow);
}

/* Pulse Rings */
.pulse-ring.bg-purple {
    background: var(--accent-glow);
    box-shadow: 0 0 10px var(--accent-glow);
}
.pulse-ring.bg-purple::after {
    border-color: var(--accent-glow);
}

.pulse-ring.bg-info {
    background: var(--secondary-glow);
    box-shadow: 0 0 10px var(--secondary-glow);
}
.pulse-ring.bg-info::after {
    border-color: var(--secondary-glow);
}

.pulse-ring.bg-warning {
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}
.pulse-ring.bg-warning::after {
    border-color: #f59e0b;
}

.pulse-ring.bg-danger {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}
.pulse-ring.bg-danger::after {
    border-color: #ef4444;
}

@media (max-width: 991px) {
    .carousel-item h1 {
        font-size: 3rem;
    }
    .hero-slider-section .carousel-indicators {
        justify-content: center;
        margin: 0;
        bottom: 30px;
    }
}

.hero-img-box {
    position: relative;
    z-index: 1;
}

.hero-img-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--border-glass);
    border-radius: 30px;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--primary-glow);
    transform: translateY(-10px);
    background: var(--bg-card);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.icon-box,
.capability-icon,
.method-icon,
.whatwedo-icon,
.why-us-icon,
.feature-icon,
.step-num {
    width: 65px !important;
    height: 65px !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2) !important;
    position: relative;
    z-index: 2;
}

.icon-box i,
.capability-icon i,
.method-icon i,
.whatwedo-icon i,
.why-us-icon i,
.feature-icon i,
.step-num i {
    color: #ffffff !important;
}

.icon-box:hover,
.capability-icon:hover,
.method-icon:hover,
.whatwedo-icon:hover,
.why-us-icon:hover,
.feature-icon:hover,
.step-num:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4) !important;
}

[data-theme="light"] .icon-box,
[data-theme="light"] .capability-icon,
[data-theme="light"] .method-icon,
[data-theme="light"] .whatwedo-icon,
[data-theme="light"] .why-us-icon,
[data-theme="light"] .feature-icon,
[data-theme="light"] .step-num {
    background: linear-gradient(135deg, #e11d48, #4f46e5) !important;
}

/* Enhanced Industry Components */
.pill-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-glow);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: inline-block;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.tech-orbit-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.tech-orbit-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-glow);
    transform: translateX(10px);
}



.tech-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tech-tag:hover {
    background: var(--primary-glow);
    color: white;
    border-color: var(--primary-glow);
}

.industry-visual-wrap {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
}

.industry-visual-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary-glow), transparent, var(--accent-glow));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
    pointer-events: none;
}

.industry-visual-wrap:hover::before {
    opacity: 0.15;
}

.industry-visual-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    transform: scale(1.1); /* Base scale 1.1 */
}

.industry-visual-wrap:hover img {
    transform: scale(1.0); /* Zoom out subtly on hover for "lens" effect */
}

.industry-visual-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(3, 7, 18, 0.9));
    z-index: 1;
}

/* Featured Technical Label over Image */
.visual-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.industry-visual-wrap:hover .visual-label {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
}

/* Stats Bento Enhancement */
.bento-item.stats-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.bento-item.stats-card:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.1));
    border-color: var(--primary-glow);
}

/* Stats & Parallax */
.stats-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(3, 7, 18, 0.7), rgba(3, 7, 18, 0.7)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

[data-theme="light"] .stats-section {
    background: linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.85)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .stats-section .gradient-text {
    text-shadow: 0 10px 20px rgba(225, 29, 72, 0.1);
}

.parallax-cta {
    position: relative;
    padding: 150px 0;
    background: linear-gradient(rgba(3,7,18,0.85), rgba(3,7,18,0.85)), url('../img/home/background.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    text-align: center;
}

[data-theme="light"] .parallax-cta {
    background: linear-gradient(rgba(241, 245, 249, 0.92), rgba(241, 245, 249, 0.92)), url('../img/home/background.png');
}

.stat-box {
    border-right: 1px solid var(--border-glass);
}

.stat-box:last-child {
    border-right: none;
}

.stat-box h2 {
    font-size: 3.5rem;
    margin-bottom: 0;
}

/* Professional UI Refinement */
.gradient-border-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px; /* Subtle radius */
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.gradient-border-card:hover {
    border-color: var(--primary-glow);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px);
}

.text-reveal-mask {
    /* Simplified back to normal text for professional clarity */
    background: none;
    -webkit-text-fill-color: inherit;
    transition: none;
}

.floating-element {
    /* Remove aggressive floating for corporate feel */
    animation: none !important;
}

.industry-visual-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
}

.industry-visual-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.industry-visual-wrap:hover img {
    transform: scale(1.05); /* Very subtle zoom */
}

/* Roadmap Indicator */
.step-indicator {
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin-right: 1.2rem !important;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .step-indicator {
    background: linear-gradient(135deg, #e11d48, #4f46e5) !important;
}

/* Simplify Bento */
.bento-item.stats-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Industry Project Slider */
.industry-projects-slider {
    padding: 60px 0;
}

.industry-projects-slider .swiper {
    padding: 50px 0;
}

.industry-projects-slider .swiper-slide {
    height: auto;
}

.industry-projects-slider .swiper-button-next,
.industry-projects-slider .swiper-button-prev {
    color: var(--primary-glow);
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    z-index: 10;
}

.industry-projects-slider .swiper-button-next:after,
.industry-projects-slider .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.industry-projects-slider .swiper-pagination-bullet {
    background: var(--primary-glow);
}

/* Theme Adaptation for Backgrounds */
.section-theme-bg, .policy-container {
    background: linear-gradient(rgba(3, 7, 18, 0.94), rgba(3, 7, 18, 0.94)), url('../img/home/background.png') fixed center/cover no-repeat;
}

[data-theme="light"] .section-theme-bg,
[data-theme="light"] .policy-container {
    background: var(--bg-dark) !important;
}

.section-theme-card-bg {
    background-color: var(--bg-card);
}

/* Modern Data Portfolio Cards */
.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card::after {
    content: 'TECHNICAL_SPEC_V2.0';
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    color: var(--primary-glow);
    padding: 2px 8px;
    border: 1px solid var(--primary-glow);
    border-radius: 4px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 3;
}

.portfolio-card:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}

.portfolio-card:hover::after {
    opacity: 1;
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.9;
}

.portfolio-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.portfolio-info {
    padding: 25px;
    background: var(--bg-card);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .portfolio-info {
    background: rgba(255, 255, 255, 0.9);
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
    pointer-events: none;
}

.portfolio-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
    display: none;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Premium Footer Redesign */
footer {
    background: var(--bg-dark);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    border-top: 1px solid var(--border-glass);
}

.footer-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 900;
    color: var(--text-primary);
    opacity: 0.05;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: -1vw;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0 !important;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-social-links {
    display: flex;
    gap: 25px;
}

.footer-social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-social-links a:hover {
    color: var(--primary-glow);
    text-shadow: 0 0 10px var(--glow-shadow);
    transform: translateY(-3px);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.footer-column h6 {
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: capitalize;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-column ul li a:hover {
    color: var(--primary-glow);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal-links {
    display: flex;
    gap: 30px;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-legal-links a:hover {
    color: var(--primary-glow);
}

@media (max-width: 991px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .footer-top-row {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 110px; /* Offset to make room for WhatsApp Bot */
    width: 60px;
    height: 60px;
    background: var(--primary-glow);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #fff;
    color: var(--primary-glow);
    transform: translateY(-5px);
}

/* WhatsApp Chatbot Component */
.wa-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.wa-wrapper.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-toggle {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    position: relative;
}

.wa-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}

.wa-toggle:hover {
    transform: scale(1.1);
    color: white;
}

.wa-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.wa-card.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.wa-card-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-avatar-box {
    position: relative;
}

.wa-avatar-box img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #fff;
}

.wa-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border: 2px solid #fff;
    border-radius: 50%;
}

.wa-header-info {
    flex-grow: 1;
}

.wa-role {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.wa-name {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.wa-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
    line-height: 1;
}

.wa-card-body {
    padding: 25px;
}

.wa-chat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff !important;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    transition: 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.wa-chat-link:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Premium Form Controls */
[data-theme="light"] .form-control, 
[data-theme="light"] .form-select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary) !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-glow) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2) !important;
    outline: none;
}

.form-floating label {
    padding-left: 20px;
}

[data-theme="light"] .form-floating label {
    color: var(--text-secondary);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-glow);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

[data-theme="light"] .form-control:focus ~ label,
[data-theme="light"] .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-glow) !important;
}

/* AI Decorative Elements */
.glow-indicator {
    width: 8px;
    height: 8px;
    background: var(--secondary-glow);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--secondary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-content.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Tech Slider Section */
.tech-section {
    padding: 120px 0;
    background: radial-gradient(circle at center, var(--glow-shadow), transparent 70%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.tech-badge {
    position: absolute;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .tech-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-glow);
    border-color: rgba(225, 29, 72, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.badge-engineer { top: 30%; left: 8%; transform: rotate(-8deg); }
.badge-developer { top: 35%; right: 8%; transform: rotate(12deg); }

.tech-slider {
    margin-top: 80px;
    padding: 20px 0;
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech-slide-track {
    display: flex;
    gap: 120px;
    animation: techScroll 60s linear infinite;
    width: max-content;
}

@keyframes techScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0.4;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.tech-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.tech-item img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.next-logo {
    filter: invert(1) brightness(2);
}

[data-theme="light"] .next-logo {
    filter: none;
}

[data-theme="light"] .tech-item {
    opacity: 0.8;
}

.tech-item span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

/* Light Beam Effect */
.light-beam {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15), transparent 70%);
    transform: translateY(-50%) rotate(-15deg);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .tech-badge { display: none; }
    .tech-slide-track { gap: 60px; }
    .tech-item img { height: 35px; }
    .tech-item span { font-size: 1.2rem; }
}

/* Elite Highlight Cards */
.highlight-card {
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 32px;
}

.highlight-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.highlight-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 10%, rgba(3, 7, 18, 0.95) 90%);
    z-index: 2;
}

.highlight-card .portfolio-info {
    opacity: 1;
    transform: translateY(0);
    background: transparent;
    padding: 50px;
    bottom: 0px;
}

.highlight-card .portfolio-info h3 {
    font-size: 2.2rem;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.highlight-card:hover img {
    opacity: 0.8;
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .highlight-card { height: 420px; }
    .highlight-card .portfolio-info { padding: 30px; }
    .highlight-card .portfolio-info h3 { font-size: 1.8rem; }
}

/* --- REVOLUTIONIZED PORTFOLIO UI --- */

/* Project Filter Buttons */
.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: var(--glow-shadow);
    border-color: var(--primary-glow);
    color: #ffffff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-glow);
    border-color: var(--primary-glow);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Modern Portfolio Card - Stacked Grid */
.portfolio-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 50%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.portfolio-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: 0.7s ease-in-out;
}

.portfolio-card:hover img {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.1);
}

/* Enriched Details Area */

.portfolio-card .badge {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--primary-glow) !important;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 14px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- ADVANCED PROJECT POPUP (MODAL) --- */
.modal-content.premium-modal {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 32px !important;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0,0,0,0.8), 0 0 30px rgba(59, 130, 246, 0.1);
}

.modal-header-visual {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.modal-header-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #030712, transparent);
}

.modal-header-visual .badge {
    position: relative;
    z-index: 10;
    font-size: 0.8rem;
    padding: 8px 16px;
}

.modal-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.spec-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 3px;
}

.modal-nav-tabs {
    border: none;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.modal-nav-link.active {
    color: var(--primary-glow);
    border-bottom: 2px solid var(--primary-glow);
}

/* Animations for Modal */
.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Expertise Ticker */
.expertise-strip {
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 10;
}

.expertise-ticker {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.ticker-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: tickerScroll 30s linear infinite;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.ticker-item {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.ticker-item i {
    font-size: 1.2rem;
}

/* Pulse Ring */
.pulse-ring {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid inherit;
    border-color: inherit;
    border-radius: 50%;
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% { width: 10px; height: 10px; opacity: 1; }
    100% { width: 30px; height: 30px; opacity: 0; }
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hover-primary:hover {
    color: var(--primary-glow) !important;
    border-color: var(--primary-glow) !important;
    transition: var(--transition-smooth);
}
/* --- ULTRA-MODERN CONTACT SYSTEM --- */

.modern-form-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.modern-form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.form-group-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-glow);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-label::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), transparent);
}

.modern-input-group {
    position: relative;
    margin-bottom: 30px;
}

.modern-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.modern-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-glow);
    background: var(--bg-card);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.modern-input:focus + .modern-label {
    color: var(--primary-glow);
}

/* Custom Modern Select */
.modern-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px 12px;
    cursor: pointer;
}

.modern-select option {
    background: var(--bg-dark);
    color: #ffffff;
    padding: 20px;
}

/* Contact Sidebar Improvements */
.contact-method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.contact-method-card:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(10px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-initiate {
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    color: #ffffff;
    border: none;
    padding: 20px 40px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.btn-initiate:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

/* --- PREMIUM SERVICES SHOWCASE --- */

.service-feature {
    padding: 100px 0;
    position: relative;
}

.service-feature:nth-child(even) .row {
    flex-direction: row-reverse;
}

.service-visual {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
    transition: transform 0.8s ease;
}

.service-feature:hover .service-visual img {
    transform: scale(1.05);
}

.service-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

[data-theme="light"] .service-visual::after {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05));
}

.service-content {
    padding: 14px;
}

.tech-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tech-tag {
    background: var(--glow-shadow, rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-glass);
    color: var(--primary-glow);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.capability-list {
    margin-top: 30px;
}

.capability-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.capability-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-glow);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.service-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 45px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card-modern:hover {
    border-color: var(--primary-glow);
    transform: translateY(-15px);
    background: var(--bg-card);
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-glow), var(--accent-glow));
    opacity: 0;
    transition: 0.4s;
}

.service-card-modern:hover::before {
    opacity: 1;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.arch-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.arch-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-glow);
}

/* --- ULTRA-MODERN BLOG SYSTEM --- */

.blog-featured-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.blog-featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    transition: transform 1s ease;
}

.blog-featured-card:hover .blog-featured-img {
    transform: scale(1.05);
}

.blog-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-dark) 30%, transparent 100%);
    z-index: 1;
}

[data-theme="light"] .blog-featured-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.2) 100%);
}

.blog-featured-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 600px;
}

.blog-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-modern:hover {
    border-color: var(--primary-glow);
    transform: translateY(-12px);
    background: var(--bg-card);
}

[data-theme="light"] .blog-card-modern {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .blog-card-modern:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.8s ease;
}

.blog-card-modern:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-glow);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.7;
}

.blog-meta i {
    color: var(--primary-glow);
}

.blog-card-body h4 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.blog-sidebar-modern {
    position: sticky;
    top: 100px;
}

.sidebar-command-center {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.sidebar-command-center:hover {
    border-color: var(--primary-glow);
    background: rgba(30, 41, 59, 0.5);
}


.newsletter-widget-premium {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: side-float 8s ease-in-out infinite;
}

@keyframes side-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.newsletter-widget-premium::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}


.newsletter-widget-premium::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}


.newsletter-widget-premium:hover {
    border-color: var(--primary-glow);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.15);
}

.newsletter-widget-premium h5 {
    position: relative;
    z-index: 1;
}

.newsletter-widget-premium p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary) !important;
}

[data-theme="light"] .newsletter-widget-premium {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}


.search-input-modern {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 14px !important;
    color: var(--text-primary) !important;
    padding: 12px 20px !important;
}

.search-input-modern:focus {
    border-color: var(--primary-glow) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1) !important;
}

.sidebar-nav-item {
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.sidebar-nav-item:hover {
    background: var(--glow-shadow);
    color: #ffffff;
    transform: translateX(5px);
}

.sidebar-nav-item .count {
    background: var(--glow-shadow);
    color: var(--primary-glow);
    font-size: 0.7rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* --- PREMIUM ABOUT-US ARCHITECTURE --- */

.mission-visual-box {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.mission-visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) brightness(0.7);
    transition: transform 1.5s ease;
}

.mission-visual-box:hover img {
    transform: scale(1.1) rotate(-1deg);
    filter: grayscale(0) brightness(0.9);
}

.floating-stat-card {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 30px;
    border-radius: 28px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.value-card-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 50px 40px;
    transition: var(--transition-smooth);
    text-align: center;
    height: 100%;
}

.value-card-modern:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--primary-glow);
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .value-card-modern {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .value-card-modern:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.value-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-glow);
    margin: 0 auto 30px;
    transition: 0.4s;
}

.value-card-modern:hover .value-icon-box {
    transform: rotateY(180deg);
    background: var(--primary-glow);
    color: #ffffff;
    box-shadow: 0 0 30px var(--primary-glow);
}

.team-card-modern {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.5s;
}

.team-img-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.8s;
}

.team-card-modern:hover .team-img-wrapper img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.team-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: var(--overlay-gradient);
    transform: translateY(20px);
    transition: 0.5s;
}

.team-card-modern:hover .team-info-overlay {
    transform: translateY(0);
}

.team-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    opacity: 0;
    transition: 0.5s;
}

.team-card-modern:hover .team-social {
    opacity: 1;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    transition: 0.3s;
}

.team-social a:hover {
    background: var(--primary-glow);
    color: #ffffff;
}

.culture-strip {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- TECHNICAL DOSSIER LEADERSHIP --- */

.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.dossier-card {
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    position: relative;
    padding: 30px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.dossier-card::before {
    content: 'STATUS: ONLINE';
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Space Grotesk';
    font-size: 0.6rem;
    color: #10b981;
    letter-spacing: 1px;
    opacity: 0.6;
}

.dossier-card:hover {
    border-color: var(--primary-glow);
    background: var(--bg-card);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .dossier-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.dossier-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.dossier-img {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
}

.dossier-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2);
    transition: 0.5s;
}

.dossier-card:hover .dossier-img img {
    filter: grayscale(0) contrast(1);
}

.dossier-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.dossier-title-box {
    flex-grow: 1;
}

.dossier-name {
    font-family: 'Space Grotesk';
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dossier-role {
    font-size: 0.75rem;
    color: var(--primary-glow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dossier-info {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 1px solid var(--border-glass);
}

.dossier-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: var(--glow-shadow);
    padding: 15px;
    border-radius: 4px;
}

.stat-item {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 4px;
}

.dossier-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.dossier-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.dossier-link:hover {
    color: var(--primary-glow);
}

.scanline-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--glow-shadow);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scan {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* --- INFRASTRUCTURE & ECOSYSTEM ARCHITECTURE --- */

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.infra-node-card {
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

.infra-node-card:hover {
    border-color: var(--primary-glow);
    background: var(--bg-card);
    transform: scale(1.02);
}

.node-status {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.node-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.node-metric {
    font-family: 'Space Grotesk';
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.ecosystem-container {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.tech-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.tech-partner-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    height: 120px;
    text-align: center;
}

.tech-partner-card i {
    font-size: 2.2rem;
    color: var(--text-secondary);
    transition: 0.3s;
}

.tech-partner-card:hover {
    border-color: var(--primary-glow);
    background: var(--glow-shadow);
    transform: translateY(-5px);
}

.tech-partner-card:hover i {
    color: var(--primary-glow);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.tech-partner-card span {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* --- ELITE ENGINEERING PORTFOLIO ENHANCEMENTS --- */
.highlight-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--bg-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.highlight-card:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 20px 50px var(--glow-shadow);
}

.highlight-card .portfolio-info {
    background: var(--bg-card) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.highlight-card:hover .portfolio-info {
    background: var(--bg-card) !important;
}

.highlight-card h3 {
    color: var(--text-primary) !important;
    font-weight: 700;
    margin-bottom: 15px;
}

.highlight-card p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px !important;
}

/* Ensure Button is perfectly visible */
.highlight-card .btn-premium {
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow)) !important;
    color: #fff !important;
    opacity: 1 !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 10px 20px var(--glow-shadow) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.highlight-card .btn-premium:hover {
    box-shadow: 0 15px 30px var(--glow-shadow) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, var(--bg-dark));
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

/* New Services & Tech Tag Styles */
.tech-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.tech-tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-glow);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.service-content .glass-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-content .glass-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .tech-tag {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

[data-theme="light"] .tech-tag:hover {
    background: rgba(225, 29, 72, 0.05);
    border-color: #e11d48;
    color: #e11d48;
}





/* --- Services Page Spec Updates --- */
.service-feature {
    padding: 80px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.service-feature:last-child {
    border-bottom: none;
}

.service-visual {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-visual:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    border-color: var(--primary-glow);
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 1s ease;
}

.service-visual:hover img {
    scale: 1.1;
}

.capability-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.capability-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(15px);
    box-shadow: -10px 0 30px rgba(59, 130, 246, 0.05);
}

.capability-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
    margin-bottom: 15px;
}

.tech-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tech-tag {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.tech-tag:hover {
    background: var(--primary-glow);
    color: #fff;
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
}


/* --- Eye-Catching Redesign --- */
.services-modern-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 0 100px;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(rgba(3, 7, 18, 0.8), rgba(3, 7, 18, 0.9)), url('../img/home/background.png') fixed center/cover no-repeat;
}

[data-theme="light"] .services-modern-hero {
    background: var(--bg-dark) !important;
}

/* Fix Hero Centering */
.services-modern-hero .container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.pill-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 24px;
    border-radius: 100px;
    color: var(--primary-glow);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 30px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Light Mode Visibility Fixes */
[data-theme="light"] .glass-panel-service {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .bento-item {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .tech-tag {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #111 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.service-slab {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.service-slab:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.glass-panel-service {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 60px;
    transition: var(--transition-smooth);
}

.glass-panel-service:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 25px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 35px;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--primary-glow);
    transform: scale(1.02);
}

.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.medium { grid-column: span 2; }

.tech-orbit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tech-orbit-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-glow);
    transform: translateX(10px);
}


/* --- Hero 3D background Fixes --- */
#three-bg-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.8;
}

.services-modern-hero {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content-wrapper {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

/* Hide preloader instantly if it has already been shown in this session */
.skip-loader #preloader,
.skip-loader #preloader * {
    display: none !important;
    visibility: hidden !important;
    animation: none !important;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo-container {
    width: 300px;
    max-width: 80%;
    text-align: center;
}

.loader-logo-container svg {
    width: 100%;
    height: auto;
}

/* Standard Staggered Reveal for Icon + Text */
#preloader .logo-part {
    opacity: 0;
    animation: loaderReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes loaderReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 4-second staggered reveal for all parts of the logo */
#preloader .p-icon-1 { animation-delay: 0.1s; }
#preloader .p-icon-2 { animation-delay: 0.3s; }
#preloader .p-chr-1 { animation-delay: 0.6s; }
#preloader .p-chr-2 { animation-delay: 0.8s; }
#preloader .p-chr-3 { animation-delay: 1.0s; }
#preloader .p-chr-4 { animation-delay: 1.2s; }
#preloader .p-chr-5 { animation-delay: 1.4s; }
#preloader .p-chr-6 { animation-delay: 1.6s; }
#preloader .p-chr-7 { animation-delay: 1.8s; }
#preloader .p-chr-8 { animation-delay: 2.0s; }
#preloader .p-chr-9 { animation-delay: 2.2s; }
#preloader .p-chr-10 { animation-delay: 2.4s; }
#preloader .p-chr-11 { animation-delay: 2.6s; }


.loader-progress-bar {
    position: absolute;
    bottom: 50px;
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-glow);
    animation: loaderProgress 4s linear forwards;
}


@keyframes loaderProgress {
    to { width: 100%; }
}

/* --- Preloader Logger --- */
.loader-logger {
    margin-top: 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    color: var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 3px;
    height: 120px;
    overflow: hidden;
    text-align: center;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
}

.logger-line {
    animation: loggerFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loggerFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.9); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Preloader Theme adaptation */
[data-theme="light"] #preloader {
    background: #f8fafc;
}

[data-theme="light"] #preloader .p-chr-1,
[data-theme="light"] #preloader .p-chr-2,
[data-theme="light"] #preloader .p-chr-3,
[data-theme="light"] #preloader .p-chr-4,
[data-theme="light"] #preloader .p-chr-5,
[data-theme="light"] #preloader .p-chr-6,
[data-theme="light"] #preloader .p-chr-7,
[data-theme="light"] #preloader .p-chr-8,
[data-theme="light"] #preloader .p-chr-9,
[data-theme="light"] #preloader .p-chr-10,
[data-theme="light"] #preloader .p-chr-11 {
    fill: #0f172a !important;
}

[data-theme="light"] #preloader .p-icon-1 { fill: var(--primary-glow) !important; }
[data-theme="light"] #preloader .p-icon-2 { fill: var(--secondary-glow) !important; }
[data-theme="light"] #preloader #pgrad1 stop:first-child { stop-color: var(--primary-glow); }
[data-theme="light"] #preloader #pgrad1 stop:last-child { stop-color: var(--secondary-glow); }
[data-theme="light"] #preloader .loader-progress-bar { background: rgba(0,0,0,0.05); }
