:root {
    /* Brand: Solufy Blue */
    --brand-navy: #0f172a;
    /* Deep Slate Navy */
    --brand-blue: #2563eb;
    /* Royal Blue */
    --brand-sky: #3b82f6;
    /* Bright Blue */

    /* Default Mode: Light (Enterprise Standard) */
    --bg-color: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --card-bg: #f8fafc;
    --card-border: #e2e8f0;

    --text-primary: #0f172a;
    /* Navy Text */
    --text-secondary: #64748b;
    /* Slate Gray */
    --text-inverse: #ffffff;

    --accent-glow: #2563eb;
    /* Blue Glow */
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    /* Navy Gradient */
    --hero-title-gradient: linear-gradient(180deg, #0f172a 0%, #334155 100%);

    --stat-count-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;

    /* UI Components */
    --btn-primary-bg: #2563eb;
    --btn-primary-text: #ffffff;
    --btn-secondary-border: #cbd5e1;
    --btn-secondary-hover-bg: #f1f5f9;

    --form-bg: #ffffff;
    --form-border: #cbd5e1;
    --form-text: #0f172a;

    /* Aliases for compatibility */
    --bg-primary: var(--bg-color);
    --bg-surface: var(--card-bg);
}

/* Optional Dark Mode (Deep Navy) */
[data-theme="dark"] {
    --bg-color: #0b1120;
    /* Darker Navy */
    --nav-bg: rgba(11, 17, 32, 0.9);
    --card-bg: #1e293b;
    --card-border: #334155;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-inverse: #0f172a;

    --primary-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    --hero-title-gradient: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);

    --btn-primary-bg: #3b82f6;
    --btn-secondary-border: #334155;
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.05);

    --form-bg: #1e293b;
    --form-border: #334155;
    --form-text: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Anchor for anything absolute relative to container */
    height: 100%;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.navbar {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Direct descendants only to avoid affecting dropdowns */
.nav-links>a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.nav-links>a:not(.btn):hover {
    color: var(--text-primary);
    background: var(--btn-secondary-hover-bg);
}

.nav-links .btn {
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    margin-left: 12px !important;
    height: auto !important;
    /* Override fixed height if needed */
    font-size: 14px !important;
    /* Slightly smaller text */
}

/* Mega Menu Container */
.mega-menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-menu-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.mega-menu-item:hover .mega-menu-link {
    color: var(--text-primary);
    background: var(--btn-secondary-hover-bg);
}

/* The Dropdown Panel */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 900px;
    background: var(--nav-bg);
    /* Matches navbar glass */
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

.mega-menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Grid Layout */
.navbar .mega-menu .mega-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    /* Ensure top alignment */
}

.mega-sidebar {
    border-right: 1px solid var(--card-border);
    padding-right: 24px;
}

.mega-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.mega-sidebar p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.mega-cta-link {
    font-size: 13px;
    color: var(--brand-blue);
    font-weight: 500;
    text-decoration: none;
}

.mega-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mega-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.mega-card:hover {
    background: var(--btn-secondary-hover-bg);
}

.mega-icon {
    font-size: 20px;
}

.mega-info h4 {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.mega-info p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}


.mega-menu-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    /* Removed height: 100% to match standard links */
}

.mega-menu-item:hover .mega-menu-link {
    color: var(--text-primary);
    background: var(--btn-secondary-hover-bg);
}

/* Cleaned up legacy styles */

.mega-icon {
    font-size: 24px;
    background: var(--btn-secondary-hover-bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.mega-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    /* Clear all margins, set bottom only */
}

.mega-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box !important;
    height: 48px !important;
    /* Fixed height for consistency */
}

.btn-primary {
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    border: 1px solid transparent;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--btn-secondary-border);
}

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

.arrow {
    margin-left: 6px;
    transition: transform 0.2s;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    padding: 8px;
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn:hover {
    background: var(--btn-secondary-hover-bg);
    transform: rotate(15deg);
}

/* Hero */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 900px;
    /* Constrain width */
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
    width: 100%;
}

.hero h1,
.hero-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-mockup {
    background: #1a1a1f;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    height: 400px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 80px -20px rgba(0, 0, 0, 0.8);
    transform: rotateX(20deg) scale(0.95);
    opacity: 0.8;
    /* Placeholder effect */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header-bar {
    height: 48px;
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
}

.content-area {
    flex: 1;
    display: flex;
}

.sidebar {
    width: 200px;
    border-right: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.01);
}

.main-panel {
    flex: 1;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Features */
.features {
    padding: 120px 0;
    position: relative;
    z-index: 100;
    /* FORCE TO TOP */
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    /* Ensure no underline on card text */
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------------------- */
/*                        Obsidian Tech Grid (Services)                       */
/* -------------------------------------------------------------------------- */

.structural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    width: 100%;
}

.struct-card {
    /* Dark Glass Surface */
    background: rgba(30, 41, 59, 0.6);
    /* Slate 800 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    padding: 32px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.struct-card:hover {
    transform: translateY(-6px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    /* Indigo 500 */
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
}

/* Header: Icon + Arrow */
.s-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.s-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #cbd5e1;
    /* Slate 300 */
    transition: all 0.3s ease;
}

.struct-card:hover .s-icon-box {
    background: #4f46e5;
    /* Indigo 600 */
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
    transform: scale(1.05);
}

.s-arrow {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.struct-card:hover .s-arrow {
    color: #fff;
    transform: translate(4px, -4px);
}

/* Body */
.s-body {
    position: relative;
    z-index: 2;
}

.s-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    /* Always White */
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.s-body p {
    font-size: 15px;
    color: #94a3b8;
    /* Slate 400 */
    line-height: 1.6;
    margin: 0;
}

/* Visual: Glow Gradient Blob */
.s-grid-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 1;
    transform: translate(-20px, 20px);
}

.struct-card:hover .s-grid-bg {
    opacity: 1;
    transform: translate(0, 0);
}

/* -------------------------------------------------------------------------- */
/*                        Light Theme Overrides                               */
/* -------------------------------------------------------------------------- */
[data-theme="light"] .struct-card {
    background: #ffffff;
    border-color: #e2e8f0;
    /* Slate 200 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .struct-card:hover {
    background: #ffffff;
    border-color: #3b82f6;
    /* Blue 500 */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .s-icon-box {
    background: #f1f5f9;
    /* Slate 100 */
    border-color: #e2e8f0;
    color: #334155;
    /* Slate 700 */
}

[data-theme="light"] .struct-card:hover .s-icon-box {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

[data-theme="light"] .s-arrow {
    color: #cbd5e1;
    /* Slate 300 */
}

[data-theme="light"] .struct-card:hover .s-arrow {
    color: #3b82f6;
}

[data-theme="light"] .s-body h3 {
    color: #0f172a;
    /* Slate 900 */
}

[data-theme="light"] .s-body p {
    color: #64748b;
    /* Slate 500 */
}

/* Watermark Logo Pattern */
.watermark-logo {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: url('/assets/solufy_website/images/solufy_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    /* Very subtle */
    transform: rotate(15deg);
    pointer-events: none;
    transition: all 0.6s ease;
}

.navy-card:hover .watermark-logo {
    opacity: 0.08;
    transform: rotate(0deg) scale(1.1);
}

.card-icon {
    font-size: 28px;
    color: var(--brand-sky);
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navy-card h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    z-index: 1;
}

.navy-card p {
    color: #94a3b8;
    /* Slate 400 */
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    z-index: 1;
    flex: 1;
    /* Push arrow down */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-arrow {
    font-weight: 600;
    color: var(--brand-sky);
    font-size: 14px;
    transition: transform 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navy-card:hover .card-arrow {
    transform: translateX(6px);
    color: #fff;
}

.card .icon {
    font-size: 24px;
    margin-bottom: 16px;
    display: inline-flex;
    padding: 12px;
    background: var(--btn-secondary-hover-bg);
    border-radius: 10px;
    color: var(--text-primary);
    width: fit-content;
    backdrop-filter: blur(4px);
    /* Glassy icon bg */
}

.service-card .icon {
    font-size: 24px;
    margin-bottom: 16px;
    display: inline-flex;
    padding: 12px;
    background: var(--btn-secondary-hover-bg);
    border-radius: 10px;
    color: var(--text-primary);
    width: fit-content;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
    /* Bold titles as requested */
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0);
    /* Prep for text over image */
    transition: text-shadow 0.3s;
}

.service-card h3 {
    font-size: 20px;
    /* Slightly larger for emphasis */
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    transform: translateY(10px);
    /* Push down slightly initially */
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .icon {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    /* readable text on image */
    color: #ffffff;
    /* Force white text on hover */
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.3s;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    opacity: 0;
    /* Hidden initially */
    transform: translateY(20px);
    /* Pushed down */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 0;
    /* Collapse space */
    margin: 0;
    overflow: hidden;
}

/* Team Card Styles */
/* Team Card Styles */
/* Team Card Styles */
/* Team Card Styles */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    height: 360px;
    /* Balanced height */
    justify-content: flex-start;
    /* items start from top */
}

.team-card:hover {
    transform: translateY(-5px);
    /* Whole card lifts slightly */
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
}

.team-card .content-wrapper {
    /* Virtual wrapper for animation group if we added one in HTML, 
       but we can target direct children for now */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    top: 0;
    position: relative;
}

/* We need to animate the content elements up on hover */
.team-card:hover .team-image-wrapper,
.team-card:hover .team-info {
    transform: translateY(-20px);
    /* Move everything up to make room for bio */
}

.team-image-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    border-radius: 50%;
    padding: 5px;
    /* Double border gap */
    background: transparent;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: all 0.5s ease;
    transform: scale(1);
    display: block;
    /* Remove inline gap */
}

.team-card:hover .team-image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card:hover .team-image-wrapper {
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.team-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.team-info .designation {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-glow);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.team-info .bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    /* Start lower */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 0;
    overflow: hidden;
    margin-top: 0;
    max-width: 260px;
}

/* On hover, bio appears */
.team-card:hover .bio {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: 8px;
    /* Slight gap from designation */
}

/* Adjust entire content positioning on hover if needed, 
   but shrinking image + margin changes usually handles it gracefully 
*/

/* Hover States */
.service-card:hover h3 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    transform: translateY(0);
    /* Move back up */
}

.service-card:hover p {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    /* Expand space */
    margin-top: 8px;
    /* Add spacing */
    color: rgba(255, 255, 255, 0.9);
    /* Readable light text */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.service-card:hover .icon {
    background: rgba(255, 255, 255, 0.2);
    /* Lighter bg on hover */
    color: #fff;
    transform: translateY(0);
}

/* Stats */
.stats {
    padding: 80px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.01);
}

.stats .container {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .count {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--stat-count-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .nav-links {
        display: none;
        /* Simple hiding for MVP */
    }

    .modular-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .modular-visual {
        display: none;
        /* Hide complex animation on mobile or simplify */
    }

    .stats .container {
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Global Form Styles */
.form-input {
    width: 100%;
    padding: 12px;
    background: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: 6px;
    color: var(--form-text);
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s;
}



/* Modular Section */
.modular-section {
    padding: 120px 0;
    overflow: hidden;
}

.modular-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.modular-text h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.modular-text p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.badge-wrapper {
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-glow);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list .check {
    color: var(--accent-glow);
    font-weight: bold;
}

/* Visual UI */
/* Visual UI - Stripe-like Network */
.modular-visual {
    position: relative;
    height: 500px;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    border-radius: 24px;
    /* Deep Perspective */
    perspective: 1500px;
    overflow: hidden;
}

/* Isometric Plane (The Floor) */
.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    /* Tilted Table View */
    transform: rotateX(35deg) rotateY(-10deg) scale(0.85);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modular-visual:hover .visual-container {
    /* Gentle Shift on Hover */
    transform: rotateX(30deg) rotateY(-5deg) scale(0.9);
}

.network-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
    /* Lines lay flat on the floor */
    transform: translateZ(0);
}

/* Grid Layout (Restored) */
.landing-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;

    /* Center items in their cells */
    justify-items: center;
    align-items: center;

    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

/* Pulse Flow Animation (GSAP Controlled) */
.connector-path {
    fill: none;
    stroke: rgba(124, 58, 237, 0.1);
    /* Faint base path */
    stroke-width: 2px;
}

.connector-packet {
    fill: none;
    stroke: url(#line-gradient);
    /* Dynamic Gradient */
    stroke-width: 3px;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.8));
    /* Initial state hidden (GSAP handles this) */
    opacity: 0;
}

/* Active Module State */
.module-card.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: #8b5cf6;
    /* Violet-500 */
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
    transform: translateY(-5px) scale(1.05);
    /* Gentle lift */
    z-index: 50;
}

.module-card.active .mod-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.module-card.active .mod-title {
    color: #7c3aed;
    /* Violet-600 */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .modular-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

}

/* Breadcrumbs Alignment */
.breadcrumb,
.breadcrumbs {
    justify-content: flex-start !important;
    padding-left: 0 !important;
    text-align: left !important;
}

/* Service View All */
.services-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-text-large {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    padding-bottom: 4px;
}

.btn-text-large:hover {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}


/* Global Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Industry Accordion (Static Highlight Mode) */
.industry-section {
    padding: 100px 0;
    overflow: visible;
}

.industry-accordion.static-mode {
    display: flex;
    height: 500px;
    gap: 12px;
    /* Slightly tighter gap */
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.acc-item {
    position: relative;
    flex: 1;
    /* Distribute evenly */
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 0;
    /* Allow shrinking */
}

.acc-item:hover {
    flex: 4;
    /* Expand significantly on hover */
}


@media (max-width: 1000px) {
    .industry-accordion.static-mode {
        flex-direction: column;
        height: auto;
    }

    .acc-item {
        height: 200px;
        /* Stacked height */
        flex: none;
        width: 100%;
    }
}

.industry-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    /* Space for scrollbar if visible */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    scroll-behavior: smooth;
}

.industry-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.industry-accordion {
    display: flex;
    height: 500px;
    gap: 16px;
    width: max-content;
    /* Allow growth */
    min-width: 100%;
}

.acc-item {
    position: relative;
    /* Fixed min-width to ensure they don't squash when >5 items */
    min-width: 250px;
    width: 250px;
    /* Start width */
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.acc-item:hover {
    width: 600px;
    /* Expand width instead of flex-grow to play nice with horizontal scroll */
}

.acc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    transition: background 0.4s;
}

.acc-item:hover .acc-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
}

.acc-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
    opacity: 0.8;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.acc-item:hover .acc-content {
    opacity: 1;
    transform: translateY(0);
}

.acc-icon {
    font-size: 24px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s 0.1s;
}

.acc-item:hover .acc-icon {
    opacity: 1;
    transform: scale(1);
}

.acc-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    /* Prevent breaking when collapsed */
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.acc-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.acc-item:hover .acc-content p {
    max-height: 100px;
    opacity: 1;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .industry-accordion {
        flex-direction: column;
        height: auto;
    }

    .acc-item {
        height: 200px;
        width: 100%;
        flex: none;
        /* Disable flex growth on mobile */
    }

    .acc-item:hover {
        flex: none;
    }

    .acc-content p {
        max-height: 100px;
        opacity: 1;
    }
}

/* Case Study Cards - Horizontal Split */
.studies-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.case-study-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    align-items: stretch;
}

.case-study-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.cs-image-col {
    flex: 0 0 45%;
    /* Fixed width for image */
    position: relative;
    overflow: hidden;
}

.cs-image-col {
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    width: 100%;
}

/* Fix: Background image is typically on the div directly or an inner img.
   In HTML I used style="background-image..." on .cs-image-col directly. 
   So no child img tag needed, just background props.
*/

.cs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.4s;
}

.case-study-card:hover .cs-overlay {
    background: rgba(0, 0, 0, 0);
    /* Reveal full brightness */
}

/* Zoom effect on background image? 
   Hard to zoom background-image on local element without affecting children size sometimes.
   Better to have inner div for bg or use background-size. 
   Let's assume simple background-size transition isn't ideal for 'zoom' without jerky repaint.
   Actually, let's use a scale transform on the container? No, that scales everything.
   Let's just use simple opacity change or keep it static.
   User asked for "Modern", so let's try a subtle `background-size` animation if supported cleanly, 
   or just rely on the card lift.
*/

.cs-content-col {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    /* Slight contrast */
}

.cs-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.case-study-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.case-study-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 600px;
}

.cs-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin-top: auto;
    /* Push to bottom if needed, or just flow */
}

.case-study-card:hover .arrow {
    transform: translateX(5px);
    color: var(--accent-glow);
}

@media (max-width: 768px) {
    .case-study-card {
        flex-direction: column;
        height: auto;
    }

    .cs-image-col {
        height: 200px;
        flex: none;
    }

    .cs-content-col {
        padding: 24px;
    }

    .case-study-card h3 {
        font-size: 22px;
    }
}

/* FORCE NAVBAR BUTTON STYLE OVERRIDE */
.navbar .container .nav-links .btn,
.navbar .nav-links .btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
    height: 40px !important;
    /* Fixed height for navbar button */
    border-radius: 6px !important;
    margin-left: 12px !important;
    line-height: normal !important;
    display: inline-flex !important;
    align-items: center !important;
}